module.exports = function(sequelize, DataTypes) {
    return sequelize.define(
        "project_user_association",
        {
            project_id: {
                type: DataTypes.STRING(36),
                allowNull: false,
                primaryKey: true,
                references: {
                    model: "projects",
                    key: "id",
                },
            },
            user_id: {
                type: DataTypes.STRING(36),
                allowNull: false,
                primaryKey: true,
                references: {
                    model: "users",
                    key: "id",
                },
            },
        }
    )
}
